﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Vit.Mvc.Results
{
    public class PlainHtmlResult : ActionResult
    {
        private string html;

        public PlainHtmlResult(string html)
        {
            this.html = html;
        }

        public override void ExecuteResult(ControllerContext context)
        {
            context.HttpContext.Response.Clear();
            context.HttpContext.Response.ContentType = "text/html";
            context.HttpContext.Response.Write(html);
        }
    }
}
